package command;
import java.util.*;
public class Main {
	public static void main(String[] args){
	List<Command> cmds = new ArrayList<Command>();
	cmds.add(new Command(){
		public void execute(){
		System.out.println("삽질!");
		}
	});
	cmds.add(new Command(){
		public void execute(){
		System.out.println("시장가서 어묵 먹기!");
		}
	});
	cmds.add(new Command(){
		public void execute(){
			System.out.println("쇼핑하기");
		}
	});

	for(Command command : cmds){
		command.execute();
	}
	}
}
